<template>
    <div class="play">
        <!-- 顶部标头 -->
        <div class="header">
            <!-- 左侧图 -->
            <div class="left">
                <img class="image"
                    src="https://imagev2.xmcdn.com/storages/72b6-audiofreehighqps/30/CE/GMCoOR8H3gffAAAQWAIAHhDF.png!magick=webp"
                    alt="">
            </div>
            <!-- 右侧按钮 -->
            <button class="right">打开</button>
        </div>

        <!-- 简介信息 -->
        <div class="introduction">
            <!-- 左侧图片 -->
            <div class="leftImg">
                <!-- 描述信息的图 -->
                <div class="">
                    <img class="textImg" :src="`https://imagev2.xmcdn.com/${headerData.headerImg}`" alt="">
                    <!-- 图片上的信息 -->
                    <div class="titleImg">
                        <!-- 图片上的播放量 -->
                        <div class="playBack">
                            <!-- 图标 -->
                            <van-icon name="service-o" />
                            &nbsp;
                            {{ headerData.playData }}
                        </div>
                        <!-- 左上角的vip标志 -->
                        <span v-show="headerData.isVIP" class="albumTag">VIP</span>
                    </div>
                </div>
                <!-- 左侧的唱片 -->
                <img class="record"
                    src="//s1.xmcdn.com/yx/ximalaya-mobile-resource/last/dist/images/listen_pic_album@3x_d18f4f7.png"
                    alt="">
            </div>

            <!-- 右侧描述信息 -->
            <div class="rightText">
                <!-- 标题 -->
                <h1 class="title">{{ headerData.headerTitle }}</h1>
                <!-- 中间的小字+图 -->
                <a class="nameWrapper" href="/zhubo/81878954">
                    <!-- 图 -->
                    <van-image class="WrapperImg" round width="20px" height="20px"
                        :src="`https://imagev2.xmcdn.com/${headerData.userHeader}`" />
                    <span class="nameOg">{{ headerData.userName }}</span>
                </a>
                <!-- 下面的订阅量 -->
                <p class="subscribeWrapper">
                    <span class="subscribeCount">已订阅{{ headerData.subscribeData }}人</span>
                </p>
            </div>
        </div>

        <div class="back-img">
            <img :src="`https://imagev2.xmcdn.com/${headerData.headerImg}`" alt="">
        </div>

        <!-- 详细描述-【不展开】二选一 -->
        <div v-show="isShow" class="detailText-none">
            <!-- 图文描述 -->
            <div class="detailWord" v-html="headerData.headerDetail">
            </div>
            <!-- 遮罩和箭头 -->
            <div class="detailIcon">
                <p class="icon-down" @click="changeShow">
                    <van-icon name="arrow-down" size="20" color="#f86442" />
                </p>
            </div>
        </div>
        <!-- 详细描述-【展开】二选一 -->
        <div v-show="!isShow" class="detailText-display">
            <!-- 图文描述 -->
            <div class="detailWord" v-html="headerData.headerDetail">
            </div>
        </div>

        <!-- 打开app，完整收听 -->
        <div class="goApp">
            <a href="javascript:;">
                <div class="appText">
                    <span>打开APP，完整收听</span>
                </div>
            </a>
        </div>

        <!-- 节目 -->
        <div class="program">
            <!-- 标题 -->
            <div class="title">
                <!-- 左侧视频数量 -->
                <h2 class="title-left">节目({{ headerData.allNum }})</h2>
                <!-- 左侧切换顺序 -->
                <span class="title-right" @click="changeOrder">
                    <van-icon name="sort" />
                    切换顺序
                </span>
            </div>

            <!-- 播放列表 -->
            <div class="playList">
                <!-- 每一条视频 -->
                <li class="playList-view" v-for="item in headerData.programName" :key="item.id">
                    <!-- 左侧数据 -->
                    <a class="view-left" href="javascript:;">
                        <div class="left-big">
                            <div class="left-small">
                                <!-- 图标 -->
                                <i class="left-small-icon">
                                    <van-icon name="play-circle-o" size="26" color="#999" />
                                </i>
                                <!-- 视频描述 -->
                                <div class="left-small-title">
                                    <div class="left-small-text">
                                        <p>{{ item.trackInfo.title }}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a>
                    <!-- 右侧下载图标 -->
                    <a class="view-right" href="javascript:;">
                        <van-icon name="down" size="16" color="#7e8c8d" />
                    </a>
                </li>
            </div>

            <!-- 底部加载更多 -->
            <div class="moreLoading">
                <a href="javascript:;">
                    <p class="bottom-btn">
                        加载更多
                        <van-icon name="arrow-down" />
                    </p>
                </a>
            </div>
        </div>

        <!-- 主播信息 -->
        <div class="anchor">
            <!-- 标题 -->
            <h2 class="anchor-title">主播信息</h2>

            <!-- 头像和信息 -->
            <div class="headText">
                <!-- 左侧头像 -->
                <div class="headText-left">
                    <img :src="`https://imagev2.xmcdn.com/${headerData.userHeader}`" alt="">
                    <div class="left-icon">
                        V{{ headerData.level }}
                    </div>
                </div>

                <!-- 中间描述 -->
                <div class="headText-tx">
                    <div class="tx-text">
                        <h4 class="xm-anchor">
                            <span class="tx">{{ headerData.userName }}</span>
                        </h4>
                        <p class="xm-detail">{{ headerData.userCont }}</p>
                        <p class="tx-icon">
                            <van-icon name="friends-o" />
                            {{ headerData.userFollower }}
                        </p>
                    </div>
                </div>

                <!-- 右侧加关注 -->
                <div class="headText-care">
                    <!-- 图标 -->
                    <span class="xxx">
                        <van-icon name="manager-o" color="#f86442" />
                    </span>
                    <!-- 加关注 -->
                    <p class="care-detail">加关注</p>
                </div>
            </div>

            <!-- 代表作 -->
            <div class="works">
                <!-- 某一个作品 -->
                <div class="works-detail" v-for="item in headerData.worksData" :key="item.id">

                    <!-- 上面的图片 -->
                    <div class="works-detail-img">
                        <!-- 图 -->
                        <img class="detail-img" :src="`https://imagev2.xmcdn.com/${item.albumInfo.cover}`" alt="">
                        <!-- 播放量 -->
                        <div class="playback">
                            <div class="volume">
                                <van-icon name="play-circle-o" color="#7e8c8d" />
                                <view v-if="item.statCountInfo.playCount < 100000000"> {{
                                    (Math.floor(item.statCountInfo.playCount) / 10000).toFixed(2)
                                }}万</view>
                                <view v-if="item.statCountInfo.playCount > 100000000"> {{
                                    (Math.floor(item.statCountInfo.playCount)
                                        / 100000000).toFixed(2) }}亿</view>
                            </div>
                        </div>
                    </div>

                    <!-- 下面的描述 -->
                    <div class="works-detail-text">
                        <p>{{ item.albumInfo.title }}</p>
                    </div>

                </div>
            </div>
        </div>


        <!-- 用户评论【不展开】 二选一 -->
        <div v-show="commentShow" class="comment-none">

            <!-- 主要内容 -->
            <div class="comment-area">

                <!-- 内容 -->
                <div class="comment-content">
                    <!-- 标题 -->
                    <div class="comment-title">
                        用户评论
                    </div>


                    <!-- 评论区 -->
                    <ul class="comment-list" v-for="item in headerData.commentList" :key="item.id">
                        <li class="comment-view">
                            <div class="user-comment">
                                <!-- 头像 -->
                                <span class="head">
                                    <img :src="`https://imagev2.xmcdn.com/${item.smallHeader}`" alt="">
                                </span>
                                <!-- 评论内容 -->
                                <div class="user-content">
                                    <!-- 用户名称 -->
                                    <span class="comment-nickname">{{ item.nickname }}</span>
                                    <!-- 评论内容 -->
                                    <p class="user-comment-content" v-html="item.content">
                                    </p>
                                    <!-- 回复 -->
                                    <div class="reply">
                                        <div class="reply-detail">
                                            <!-- 回复 -->
                                            <a href="javascript:;">回复</a>
                                            <!-- 评论时间 -->
                                            <div class="reply-time">{{ moment(item.createdAt).format('YYYY-MM-DD') }}</div>
                                        </div>
                                        <!-- 点赞 -->
                                        <a href="javascript:;">
                                            {{ item.likes }}
                                            <van-icon name="good-job-o" />
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>


                </div>

                <!-- 蒙版 -->
                <div class="comment-detailIcon">
                    <p class="icon-down" @click="changComment">
                        <van-icon name="arrow-down" size="20" color="#f86442" />
                    </p>
                </div>
            </div>

            <!-- 底部查看的更多评论 -->
            <div class="more-comment">
                查看更多评论
            </div>
        </div>
        <!-- 用户评论【展开】 二选一 -->
        <div v-show="!commentShow" class="comment-display">

            <!-- 主要内容 -->
            <div class="comment-area">

                <!-- 内容 -->
                <div class="comment-content">
                    <!-- 标题 -->
                    <div class="comment-title">
                        用户评论
                    </div>


                    <!-- 评论区 -->
                    <ul class="comment-list" v-for="item in headerData.commentList" :key="item.id">
                        <li class="comment-view">
                            <div class="user-comment">
                                <!-- 头像 -->
                                <span class="head">
                                    <img :src="`https://imagev2.xmcdn.com/${item.smallHeader}`" alt="">
                                </span>
                                <!-- 评论内容 -->
                                <div class="user-content">
                                    <!-- 用户名称 -->
                                    <span class="comment-nickname">{{ item.nickname }}</span>
                                    <!-- 评论内容 -->
                                    <p class="user-comment-content" v-html="item.content">
                                    </p>
                                    <!-- 回复 -->
                                    <div class="reply">
                                        <div class="reply-detail">
                                            <!-- 回复 -->
                                            <a href="javascript:;">回复</a>
                                            <!-- 评论时间 -->
                                            <div class="reply-time">{{ moment(item.createdAt).format('YYYY-MM-DD') }}</div>
                                        </div>
                                        <!-- 点赞 -->
                                        <a href="javascript:;">
                                            {{ item.likes }}
                                            <van-icon name="good-job-o" />
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>


                </div>

                <!-- 蒙版 -->

            </div>

            <!-- 底部查看的更多评论 -->
            <div class="more-comment">
                查看更多评论
            </div>
        </div>


        <!-- 相似专辑 -->
        <div class="album">
            <!-- 上面的标题 -->
            <div class="album-title">
                <div class="album-title-view">相似专辑</div>
            </div>

            <!-- 中间内容区 -->
            <ul class="album-content">
                <li class="album-content-list" v-for="item in headerData.albumList" :key="item.id">
                    <div class="album-wrap">


                        <!-- 上面的图片 -->
                        <div class="album-wrap-img">
                            <!-- 图片 -->
                            <img class="img-cover" :src="`https://imagev2.xmcdn.com/${item.coverPath}`" alt="">
                            <!-- 播放量 -->
                            <div class="album-cover-panel">
                                <div class="abs-ellipsis">
                                    <van-icon name="play-circle-o" color="#7e8c8d" />
                                    <view v-if="item.playCount < 100000000"> {{ (Math.floor(item.playCount) /
                                        10000).toFixed(2)
                                    }}万</view>
                                    <view v-if="item.playCount > 100000000"> {{ (Math.floor(item.playCount)
                                        / 100000000).toFixed(2) }}亿</view>
                                </div>
                            </div>
                        </div>


                        <!-- 下面的描述 -->
                        <div class="album-wrap-text">
                            <p class="ellipsis">{{ item.title }}</p>
                        </div>
                    </div>
                </li>
            </ul>

            <!-- 底部换一批 -->
            <div class="album-bottom">
                <div class="album-bottom-detail">
                    <div class="album-bottom-icon" @click="changeSome">
                        <van-icon name="replay" />
                        <!-- 文字 -->
                        <span class="v-m">换一批</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- 猜你喜欢 -->
        <div class="like">
            <!-- 标题 -->
            <div class="like-title">
                <div class="list-view">猜你喜欢</div>
            </div>

            <!-- 中间的内容 -->
            <div class="like-content">
                <!-- 每一项 -->
                <li class="like-content-detail" v-for="item in headerData.guessLike" :key="item.id">
                    <div class="like-img-text">
                        <!-- 左侧图片 -->
                        <div class="like-img">
                            <img :src="`https://imagev2.xmcdn.com/${item.albumCoverPath}`" alt="">
                        </div>

                        <!-- 右侧描述 -->
                        <div class="like-text">
                            <!-- 上-标题 -->
                            <span class="like-text-title">{{ item.albumTitle }}</span>
                            <!-- 中-简介 -->
                            <p class="like-text-album">{{ item.intro }}</p>
                            <!-- 下-播放量 -->
                            <div class="like-text-bottom">
                                <!-- 左侧播放量 -->
                                <span class="bottom-left">
                                    <van-icon name="play" />
                                    &nbsp;
                                    <view v-if="item.albumPlayCount < 100000000"> {{ (Math.floor(item.albumPlayCount) /
                                        10000).toFixed(2)
                                    }}万</view>
                                    <view v-if="item.albumPlayCount > 100000000"> {{ (Math.floor(item.albumPlayCount)
                                        / 100000000).toFixed(2) }}亿</view>
                                </span>
                                <!-- 右侧在线人数 -->
                                <span class="bottom-right">
                                    <van-icon name="contact-o" />
                                    &nbsp;
                                    {{ item.albumTrackCount }}
                                </span>
                            </div>
                        </div>


                    </div>
                </li>
            </div>

            <!-- 查看更多 -->
            <div class="like-more">
                <div class="like-more-text">
                    查看更多
                    <van-icon name="arrow" />
                </div>
            </div>
        </div>

        <!-- 底部logo -->
        <div class="bottom-logo">
            <!-- 背景图 -->
            <img class="bottom-background"
                src="https://imagev2.xmcdn.com/storages/2165-audiofreehighqps/52/6D/GKwRIDoF6Ml9AAESnAEaI6xF.png!magick=webp"
                alt="">
            <!-- logo -->
            <img class="logo"
                src="https://imagev2.xmcdn.com/storages/72b6-audiofreehighqps/30/CE/GMCoOR8H3gffAAAQWAIAHhDF.png!magick=webp"
                alt="">
            <!-- 版权 -->
            <div class="bottom-text">
                <p>© 2014-2023 喜马拉雅 版权所有</p>
            </div>
        </div>


        <!-- 固定在页面上的购买全集和开会员 -->
        <div class="footer">
            <!-- 左侧购买 -->
            <div class="left-buy">
                <div class="left-buy-text">
                    <span class="buy-all">购买已更全集</span>
                    <span class="buy-price">￥57.95</span>
                </div>
            </div>
            <!-- 右侧充会员 -->
            <div class="right-vip">6元开会员 免费听</div>
        </div>

    </div>

    <!-- <view v-if="item.playCount < 100000000"> {{ (Math.floor(item.playCount) / 10000).toFixed(2)}}万</view>
    <view v-if="item.playCount > 100000000"> {{ (Math.floor(item.playCount)/ 100000000).toFixed(2) }}亿</view> -->
</template>


<script setup lang="ts">
import { ref, onMounted, } from 'vue';
import useHeader from '../../stores/header'
import moment from 'moment'
import { useRoute } from 'vue-router'

const headerData = useHeader()
// 路由接参数
const route = useRoute()
// console.log('收到的参数query',route.query)

// headerData.getAlbumData()



// 判断顺序是正序还是倒序
const order = ref(true)
// 相似专辑点击切换
const page = ref<any>(1)
// 把收到的id存一下
const id = ref()
id.value = route.params
const ID = Number(id.value.id)


// 获取时间戳
const time = Date.now()



onMounted(() => {
    // 页面挂载的时候发请求
    headerData.getHeaderData(ID)
    // 获取节目列表
    headerData.getProgramList(ID,order.value,time)
    // // // 获取评论
    headerData.getCommentData(ID,time)
    // // 相似专辑
    headerData.getAlbumData(page.value)
    // console.log(headerData.albumList);
    



    // // 猜你喜欢
    headerData.getGuessData()
})


// 控制蒙版显示
const isShow = ref(true);

// 控制评论区是否展开
const commentShow = ref(true)

// 点击展开描述详情
const changeShow = () => {
    isShow.value = !isShow.value
}

// 点击展开评论区详情
const changComment = () => {
    commentShow.value = !commentShow.value
}

// 点击切换顺序
const changeOrder = () => {
    // 取反
    order.value = !order.value
    // 再发请求
    headerData.getProgramList(id.value,order.value,time)
}

// 点击换一批切换数据
const changeSome = () => {
    if (page.value < 3) {
        page.value++
    } else {
        page.value = 1
    }
    headerData.getAlbumData()
    headerData.searchPage = page.value
    
}


</script>



<style scoped lang="scss">
.play {
    width: 100%;
    position: relative;

    // 顶部标头
    .header {
        height: 58px;
        background: rgba(34, 35, 37, .8);
        display: flex;
        justify-content: space-between;
        padding: 10px 8px 10px 8px;
        align-items: center;
        box-sizing: border-box;

        // 左侧图
        .left {

            // 图
            .image {
                width: 102px;
                height: 36px;
                margin-top: 5px;
            }
        }

        // 右侧按钮
        .right {
            background: #f86442;
            width: 62px;
            height: 29px;
            font-size: 15px;
            color: white;
            border: 1px solid #f86442;
            border-radius: 40px;
        }
    }

    // 简介信息
    .introduction {
        z-index: 999;
        width: 375px;
        height: 168px;
        padding: 30px 20px 20px 20px;
        display: flex;
        box-sizing: border-box;

        // 左侧图片
        .leftImg {
            width: 95px;
            height: 95px;
            display: flex;
            position: relative;
            margin-right: 10px;

            // 描述信息的图
            .textImg {
                width: 95px;
                height: 95px;
            }

            // 图片上的信息
            .titleImg {
                position: absolute;
                left: 0;
                right: 0;
                top: 0;
                bottom: 0;

                // 播放量
                .playBack {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    left: 0;
                    text-align: right;
                    padding: 4px 10px 4px 5px;
                    white-space: nowrap;
                    font-size: 12px;
                    line-height: 1.42;
                    font-weight: 700;
                    color: #fff;
                }

                // 左上角的vip标志
                .albumTag {
                    width: 32px;
                    height: 15px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    display: inline-block;
                    padding-left: 4px;
                    -webkit-box-sizing: border-box;
                    box-sizing: border-box;
                    background-image: -o-linear-gradient(338deg, #c68953 0, #e3b890 54%, #fbd4ac 100%);
                    background-image: linear-gradient(112deg, #c68953 0, #e3b890 54%, #fbd4ac 100%);
                    border-radius: 2px 0 100px 0;
                    font-size: 10px;
                    color: #fff;
                    line-height: 15px;
                }
            }

            // 左侧的唱片
            .record {
                width: 24px;
                height: 95px;
            }
        }

        // 右侧描述信息
        .rightText {
            box-sizing: border-box;
            // background: #bfc;
            margin-left: 15px;
            flex: 1;
            height: 118px;
            padding-right: 40px;
            width: 215px;

            // 标题
            .title {
                font-family: PingFangSC-Medium;
                font-weight: 500;
                font-size: 17px;
                color: #fff;
                line-height: 23px;
                overflow: hidden;
                display: -ms-flexbox;
                display: flex;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -o-text-overflow: ellipsis;
                text-overflow: ellipsis;
                -webkit-box-orient: vertical;
            }

            // 中间的小字+图
            .nameWrapper {
                display: block;
                position: relative;
                border-bottom: 1px solid #e8e8e8;
                width: 215px;
                height: 40px;

                // 图
                .WrapperImg {
                    vertical-align: middle;
                }

                // 文字描述
                .nameOg {
                    padding-left: 6px;
                    vertical-align: middle;
                    font-size: 12px;
                    color: rgba(255, 255, 255, .81);
                }
            }

            // 下面的订阅量
            .subscribeWrapper {
                display: flex;
                flex-wrap: wrap;
                padding: 10px 0 0;
                height: 32px;

                .subscribeCount {
                    display: inline-block;
                    margin: 0 auto 20px 0;
                    font-family: PingFangSC-Regular;
                    font-size: 12px;
                    color: #fff;
                }
            }
        }
    }

    // 详细描述-【不展开】- 二选一
    .detailText-none {
        // position: relative;
        background: #fff;

        // 图文描述
        .detailWord {
            padding: 15px 15px 0px 15px;
            width: 375px;
            height: 135px;
            overflow: hidden;
            box-sizing: border-box;
            color: rgba(0, 0, 0, .8) !important;
            font-size: 14px !important;
            line-height: 21px !important;

            .detailImg {
                color: #333333;
                font-weight: normal;
                font-size: 16px;
                line-height: 30px;
                font-family: Helvetica, Arial, sans-serif;
                hyphens: auto;
                text-align: justify;

                .img-WuKong {
                    width: 345px;
                    height: 1663px;
                }
            }

            p {
                color: rgba(0, 0, 0, .8) !important;
                font-size: 14px !important;
                line-height: 21px !important;
            }
        }

        // 箭头图标
        .detailIcon {
            width: 375px;
            height: 150px;
            position: absolute;
            top: 226px;
            // display: none;
            background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.8) 34%, rgba(255, 255, 255, 0.95) 66%, #fff 100%);

            .icon-down {
                width: 100%;
                position: absolute;
                bottom: 20px;
                text-align: center;
            }

        }
    }

    // 详细描述-【展开】- 二选一
    .detailText-display {
        // position: relative;
        background: #fff;

        // 图文描述
        .detailWord {
            padding: 15px 15px 0px 15px;
            color: rgba(0, 0, 0, .8) !important;
            font-size: 14px !important;
            line-height: 21px !important;

            .detailImg {
                color: #333333;
                font-weight: normal;
                font-size: 16px;
                line-height: 30px;
                font-family: Helvetica, Arial, sans-serif;
                hyphens: auto;
                text-align: justify;

                .img-WuKong {
                    width: 345px;
                    height: 1663px;
                }
            }

            p {
                color: rgba(0, 0, 0, .8) !important;
                font-size: 14px !important;
                line-height: 21px !important;
            }
        }
    }

    // 打开app，完整收听
    .goApp {
        width: 375px;
        height: 41px;
        margin-top: 20px;
        text-align: center;

        a {
            color: inherit;
            text-decoration: none;
        }

        .appText {
            background-image: linear-gradient(-269deg, #ff8b70 2%, #f86442 99%);
            width: 235px;
            height: 42px;
            color: white;
            display: block;
            font-size: 16px;
            margin: 0 auto;
            line-height: 42px;
            border-radius: 30px;
        }
    }

    // 节目
    .program {
        padding: 15px 15px 0px 15px;

        // 标题
        .title {
            display: flex;
            justify-content: space-between;

            .title-left {
                font-size: 18px;
            }

            .title-right {
                font-size: 14px;
                color: #999;
                letter-spacing: 1px;
                line-height: 1.6;
            }
        }

        // 播放列表
        .playList {

            // 每条视频
            .playList-view {
                display: flex;
                border-bottom: 1px solid #f3f4f5;

                a {
                    color: inherit;
                    text-decoration: none;
                }

                // 左侧数据
                .view-left {
                    flex: 1;

                    .left-big {
                        .left-small {
                            display: flex;
                            padding: 12px 0px;

                            // 图标
                            .left-small-icon {}

                            // 视频描述
                            .left-small-title {
                                margin: 0px 10px;

                                // 文本
                                .left-small-text {
                                    display: flex;
                                    font-size: 16px;

                                    p {
                                        line-height: 26px;
                                        overflow: hidden;
                                        display: -ms-flexbox;
                                        display: flex;
                                        display: -webkit-box;
                                        -webkit-line-clamp: 2;
                                        -o-text-overflow: ellipsis;
                                        text-overflow: ellipsis;
                                        -webkit-box-orient: vertical;
                                        color: #333;
                                    }
                                }
                            }
                        }
                    }
                }

                // 右侧下载图标
                .view-right {
                    width: 30px;
                    text-align: center;
                    margin: auto;
                    margin-right: 3px;
                }
            }
        }

        // 加载更多
        .moreLoading {
            .bottom-btn {
                display: flex;
                padding: 17px 0px;
                font-size: 15px;
                color: #f86442;
                font-weight: 700;
                text-align: center;
                display: block;
            }
        }
    }

    // 主播信息
    .anchor {
        padding: 15px;
        margin: 10px 0px;

        // 标题
        .anchor-title {
            margin-bottom: 10px;
            font-family: PingFangSC-Semibold;
            font-size: 18px;
            line-height: 1.39;
            font-weight: 700;
            color: #333;
        }

        // 头像和信息
        .headText {
            display: flex;
            justify-content: space-between;

            // 左侧头像
            .headText-left {
                display: flex;
                flex-direction: column;
                position: relative;

                img {
                    border-radius: 50%;
                    // max-width: 100%;
                    width: 54px;
                    height: 54px;
                    font-size: 10px;
                }

                .left-icon {
                    background: skyblue;
                    font-size: 12px;
                    color: white;
                    border-radius: 30px;
                    text-align: center;
                    margin: 0 auto;
                    width: 27px;
                    height: 16px;
                    position: absolute;
                    bottom: 0px;
                    left: 0;
                    right: 0;
                    margin: 0 auto;
                    font-weight: 700;
                }
            }

            // 中间描述
            .headText-tx {
                padding: 0 20px 0 10px;
                width: 100px;
                // -webkit-box-flex: 1;
                // -ms-flex: 1;
                flex: 1;

                .tx-text {
                    .xm-anchor {
                        font-family: PingFangSC-Medium;
                        font-size: 16px;
                        color: #333;
                        line-height: 22px;
                        margin-bottom: 2px;

                    }

                    .xm-detail {
                        width: 100%;
                        padding-right: 22px;
                        font-family: PingFangSC-Regular;
                        font-size: 12px;
                        line-height: 17px;
                        color: #999;
                        overflow: hidden;
                        white-space: nowrap;
                        -o-text-overflow: ellipsis;
                        text-overflow: ellipsis;
                    }

                    .tx-icon {
                        padding-top: 4px;
                        width: 100%;
                        font-family: PingFangSC-Regular;
                        font-size: 12px;
                        line-height: 17px;
                        color: #bbb;
                        letter-spacing: 0;
                    }
                }
            }

            // 右侧加关注
            .headText-care {
                display: flex;
                flex-direction: column;
                margin-top: 10px;

                .xxx {
                    text-align: center;
                }

                .care-detail {
                    padding-top: 3px;
                    font-size: 12px;
                    font-family: PingFangSC;
                    font-weight: 400;
                    color: #f86442;
                    line-height: 11px;
                }
            }
        }

        // 代表作
        .works {
            padding: 27px 10px 0 0;
            display: flex;
            justify-content: space-between;

            // 某一个作品
            .works-detail {
                display: flex;
                flex-direction: column;
                width: 27%;

                // 上面的图片
                .works-detail-img {
                    padding-bottom: 100%;
                    height: 0px;
                    display: flex;
                    flex-direction: column;
                    position: relative;

                    // 图
                    .detail-img {
                        border-radius: 5px;
                        // width: 90px;
                        // height: 90px;
                    }

                    // 播放量
                    .playback {
                        .volume {
                            font-size: 12px;
                            position: absolute;
                            bottom: 0px;
                            left: 0;
                            font-size: 12px;
                            line-height: 17px;
                            color: #fff;
                            letter-spacing: .34px;
                            vertical-align: middle;
                        }
                    }
                }

                // 下面的描述
                .works-detail-text {
                    padding: 6px 0 11px 0;
                    font-size: 13px;
                    height: 53px;

                    p {
                        font-family: PingFangSC-Regular;
                        line-height: 18px;
                        height: 36px;
                        -webkit-box-sizing: border-box;
                        box-sizing: border-box;
                        color: #333;
                        letter-spacing: .34px;
                        overflow: hidden;
                        display: -ms-flexbox;
                        display: flex;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -o-text-overflow: ellipsis;
                        text-overflow: ellipsis;
                        -webkit-box-orient: vertical;

                    }
                }
            }
        }
    }

    // 用户评论-【不展开】 二选一
    .comment-none {
        padding: 15px;
        margin-bottom: 10px;

        // 主要内容
        .comment-area {
            position: relative;

            // 内容
            .comment-content {
                height: 262px;
                overflow: hidden;
                box-sizing: border-box;

                // 标题
                .comment-title {
                    margin-bottom: 20px;
                    font-family: PingFangSC-Semibold;
                    font-size: 18px;
                    line-height: 1.39;
                    font-weight: 700;
                    color: #333;
                }

                // 评论区
                .comment-list {

                    li {
                        list-style: none;
                    }

                    .comment-view {
                        margin-bottom: 28px;

                        .user-comment {
                            display: flex;

                            // 头像
                            .head {
                                img {
                                    width: 35px;
                                    height: 35px;
                                    border-radius: 50%;
                                    margin-right: 9px;
                                }
                            }

                            // 评论内容
                            .user-content {


                                // 用户名称
                                .comment-nickname {
                                    display: block;
                                    color: #666;
                                    line-height: 20px;
                                    margin-bottom: 4px;
                                    display: inline-block;
                                    font-size: 15px;
                                }

                                // 评论内容
                                .user-comment-content{
                                    color: #333;
                                    line-height: 23.5px;
                                    font-size: 15px;

                                 
                                }

                                // 回复
                                .reply {
                                    margin-top: 8px;
                                    line-height: 18px;
                                    display: flex;
                                    justify-content: space-between;

                                    .reply-detail {
                                        display: flex;

                                        a {
                                            font-size: 12px;
                                            color: #666;
                                        }

                                        // 评论时间
                                        .reply-time {
                                            margin-left: 5px;
                                            font-size: 11px;
                                            color: #999;
                                        }

                                    }

                                    a {
                                        font-size: 12px;
                                        color: #999;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            // 蒙版
            .comment-detailIcon {
                position: absolute;
                width: 100%;
                height: 150px;
                bottom: 0;
                left: 0;
                background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.8) 34%, rgba(255, 255, 255, 0.95) 66%, #fff 100%);

                .icon-down {
                    width: 100%;
                    position: absolute;
                    bottom: 20px;
                    text-align: center;
                }
            }
        }

        // 底部查看的更多评论
        .more-comment {
            width: 245px;
            padding: 10px 0;
            font-size: 14px;
            color: #fe7959;
            line-height: 20px;
            text-align: center;
            margin: 30px auto 0;
            display: block;
        }
    }

    // 用户评论-【展开】 二选一
    .comment-display {
        padding: 15px;
        margin-bottom: 10px;

        // 主要内容
        .comment-area {
            position: relative;

            // 内容
            .comment-content {

                // 标题
                .comment-title {
                    margin-bottom: 20px;
                    font-family: PingFangSC-Semibold;
                    font-size: 18px;
                    line-height: 1.39;
                    font-weight: 700;
                    color: #333;
                }

                // 评论区
                .comment-list {

                    li {
                        list-style: none;
                    }

                    .comment-view {
                        margin-bottom: 28px;

                        .user-comment {
                            display: flex;

                            // 头像
                            .head {
                                img {
                                    width: 35px;
                                    height: 35px;
                                    border-radius: 50%;
                                    margin-right: 9px;
                                }
                            }

                            // 评论内容
                            .user-content {


                                // 用户名称
                                .comment-nickname {
                                    display: block;
                                    color: #666;
                                    line-height: 20px;
                                    margin-bottom: 4px;
                                    display: inline-block;
                                    font-size: 15px;
                                }

                                // 评论内容
                                .user-comment-content {
                                    color: #333;
                                    line-height: 23.5px;
                                    font-size: 15px;

                                   
                                }

                                // 回复
                                .reply {
                                    margin-top: 8px;
                                    line-height: 18px;
                                    display: flex;
                                    justify-content: space-between;

                                    .reply-detail {
                                        display: flex;

                                        a {
                                            font-size: 12px;
                                            color: #666;
                                        }

                                        // 评论时间
                                        .reply-time {
                                            margin-left: 5px;
                                            font-size: 11px;
                                            color: #999;
                                        }

                                    }

                                    a {
                                        font-size: 12px;
                                        color: #999;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            // 蒙版
        }

        // 底部查看的更多评论
        .more-comment {
            width: 245px;
            padding: 10px 0;
            font-size: 14px;
            color: #fe7959;
            line-height: 20px;
            text-align: center;
            margin: 30px auto 0;
            display: block;
        }
    }

    // 相似专辑
    .album {
        padding: 15px 15px 22px 15px;
        margin-bottom: 10px;
        background-color: #fff;

        // 上面的标题
        .album-title {
            .album-title-view {
                font-size: 18px;
                padding-bottom: 10px;
                color: #333;
                font-weight: 700;
            }
        }

        // 中间内容区
        .album-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            // 每一项
            .album-content-list {
                // width: 30%;
                box-sizing: border-box;

                .album-wrap {
                    // width: 100%;

                    // 上面的图片
                    .album-wrap-img {
                        padding-bottom: 100%;
                        height: 0px;
                        position: relative;

                        // 图
                        img {
                            width: 108px;
                            height: 108px;
                            border-radius: 4px;
                        }

                        // 播放量
                        .album-cover-panel {
                            font-size: 12px;
                            position: absolute;
                            bottom: 0px;
                            left: 0;
                            font-size: 14px;
                            line-height: 17px;
                            color: #fff;
                            letter-spacing: .34px;
                            vertical-align: middle;
                        }
                    }

                    // 下面的描述
                    .album-wrap-text {
                        padding: 6px 0 11px 0;
                        font-family: PingFangSC-Regular;
                        font-size: 13px;
                        line-height: 18px;
                        height: 53px;
                        overflow: hidden;
                        -webkit-box-sizing: border-box;
                        box-sizing: border-box;
                        color: #333;
                        letter-spacing: .34px;
                        width: 103px;
                        // height: 36px;

                        .ellipsis {
                            overflow: hidden;
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            text-overflow: ellipsis;
                            -webkit-box-orient: vertical;
                        }
                    }
                }
            }
        }

        // 底部换一批
        .album-bottom {
            .album-bottom-detail {
                .album-bottom-icon {
                    width: 72px;
                    height: 30px;
                    background: #f86442;
                    text-align: center;
                    line-height: 30px;
                    color: white;
                    border-radius: 30px;
                    font-size: 12px;
                    margin: 0 auto;
                }
            }

        }
    }

    // 猜你喜欢
    .like {
        padding: 15px 0 0 15px;

        // 标题
        .like-title {
            .list-view {
                font-size: 18px;
                font-weight: 700;
                color: #333;
            }
        }


        // 中间的内容
        .like-content {
            list-style: none;
            width: 100%;
            box-sizing: border-box;

            // 每一项
            .like-content-detail {
                border-bottom: 1px solid #f3f4f5;

                .like-img-text {
                    padding: 15px 0 15px 0;
                    -webkit-box-sizing: border-box;
                    box-sizing: border-box;
                    max-width: 100%;
                    display: flex;

                    // 左侧图片
                    .like-img {
                        padding: 0 15px 0 0;

                        img {
                            width: 70px;
                            height: 70px;
                        }
                    }

                    // 右侧描述
                    .like-text {
                        width: 265px;

                        // 上-标题
                        .like-text-title {
                            display: block;
                            color: #333;
                            font-size: 16px;
                            line-height: 1.38;
                            overflow: hidden;
                            white-space: nowrap;
                            -o-text-overflow: ellipsis;
                            text-overflow: ellipsis;

                        }

                        // 中-简介
                        .like-text-album {
                            color: #999;
                            margin: 5px 0 7px;
                            font-size: 13px;
                            line-height: 1.38;
                        }

                        // 下-播放量
                        .like-text-bottom {
                            font-size: 11px;
                            line-height: 1.45;
                            white-space: nowrap;

                            // 左侧播放量
                            .bottom-left {
                                margin-right: 20px;
                                line-height: 20px;
                            }

                            // 右侧在线人数
                            .bottom-right {
                                margin-right: 20px;
                                line-height: 20px;
                            }
                        }
                    }
                }
            }
        }



        // 查看更多
        .like-more {
            .like-more-text {
                text-align: center;
                padding: 17px 0;
                font-size: 15px;
                line-height: 55px;
                font-weight: 700;
                color: #f86442;
                height: 55px;
            }
        }
    }

    // 底部logo
    .bottom-logo {
        position: relative;
        text-align: center;

        // 背景图
        .bottom-background {
            position: absolute;
            top: 0;
            left: 0;
            height: 180px;
            width: 100%;
            z-index: -1;
        }

        // logo
        .logo {
            width: 102px;
            height: 38px;
            margin: 34px auto 0;
        }

        // 版权
        .bottom-text {
            p {
                margin-top: 15px;
                color: gray;
                font-size: 12px;
                line-height: 16px;
            }
        }
    }

    // 固定在页面上的购买全集和开会员
    .footer {
        display: flex;
        height: 60px;
        width: 375px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        // 左侧购买
        .left-buy {
            background: #fff;
            width: 50%;
            box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, .1);

            .left-buy-text {
                text-align: center;

                .buy-all {
                    font-size: 14px;
                    color: #333;
                    line-height: 60px;
                }

                .buy-price {
                    margin: 0 5px 0 4px;
                    color: #f86442;
                    font-size: 18px;
                }
            }
        }

        // 右侧充会员
        .right-vip {
            width: 50%;
            background-image: linear-gradient(125deg, #ffdebe 0, #f3cba6 46%, #dca574 100%);
            color: #9b7b55;
            text-align: center;
            font-size: 15px;
            line-height: 60px;
        }
    }

    .back-img {
        img {
            width: 100%;
            width: 375px;
            height: 168px;
            filter: blur(20px);
            z-index: -1;
            position: absolute;
            top: 58px;
            background-size: 400 400;
        }

    }
}
</style>